package com.yuan.zsschool.ui;

import android.content.Intent;

import com.yuan.base.framework.BaseFrameworkFragment;
import com.yuan.zsschool.R;
import com.yuan.zsschool.ui.notice.NoticeActivity;

/**
 * 首页通告
 */
public class MainSchoolFragment extends BaseFrameworkFragment {

	// --------------------------控件--------------------------

	// --------------------------变量--------------------------

	@Override
	protected int getLayoutId() {
		return R.layout.fragment_main_school;
	}

	@Override
	protected void bindViews() {
		setOnClickListener(R.id.tv_to_notice, v -> {
			Intent intent = new Intent(context, NoticeActivity.class);
			intent.putExtra("type", 0);
			startActivity(intent);
		});
		setOnClickListener(R.id.tv_to_sp, v -> {
			Intent intent = new Intent(context, NoticeActivity.class);
			intent.putExtra("type", 1);
			startActivity(intent);
		});
		setOnClickListener(R.id.tv_to_kc, v -> {
			Intent intent = new Intent(context, NoticeActivity.class);
			intent.putExtra("type", 2);
			startActivity(intent);
		});
		setOnClickListener(R.id.tv_to_parent_mail, v -> {
			Intent intent = new Intent(context, NoticeActivity.class);
			intent.putExtra("type", 3);
			startActivity(intent);
		});
	}

	@Override
	protected void initUI() {
	}


	@Override
	public void onHiddenChanged(boolean hidden) {
		super.onHiddenChanged(hidden);
	}

	@Override
	public void onResume() {
		super.onResume();
	}


	@Override
	public void onStart() {
		super.onStart();
	}

}
